/**
 * Copyright (c) 2011 Nokia Corporation.
 */

import QtQuick 1.0
import com.nokia.symbian 1.0 // Symbian Qt Quick components
import "."

Window {
    id: root

    property int orientation: PageOrientation.Automatic

    SensorListPage {
        id: sensorListPage
        orientationLock: root.orientation
    }

    // Common application statusbar
    StatusBar {
        id: statusBar
        anchors.top: root.top
        z: 1
    }

    // Page stack for all pages
    PageStack {
        id: pageStack
        toolBar: toolBar

        anchors {
            left: parent.left;
            right: parent.right;
            top: statusBar.bottom;
            bottom: toolBar.top
        }

        Component.onCompleted: {
            // Push the first page on the stack.
            pageStack.push(sensorListPage);
        }
    }

    // Common toolbar for the pages
    ToolBar {
         id: toolBar
         anchors.bottom: parent.bottom
    }
}

// End of file.
